function functionInLuaFile(key)
    return 'call from android: I am in Lua file . Return : ' .. key .. '!'
end

function callAndroidApi(context, v)
    local Toast = luajava.bindClass('android.widget.Toast')
    Toast:makeText(context, v:getText(), Toast.LENGTH_SHORT):show()
end

function launchSetting(context)
    local intent = luajava.newInstance("android.content.Intent")
    local c = luajava.newInstance("android.content.ComponentName", "com.android.settings", "com.android.settings.Settings")
    intent:setFlags(intent.FLAG_ACTIVITY_NEW_TASK);
    intent:setComponent(c)
    context:startActivity(intent)
end